<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libslic3r: Slic3r::ConfigOptionPercent Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Slic3r_192px_transparent.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libslic3r
   </div>
   <div id="projectbrief">Library for generating gcode from 3d models</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_slic3r.html">Slic3r</a></li><li class="navelem"><a class="el" href="class_slic3r_1_1_config_option_percent.html">ConfigOptionPercent</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_slic3r_1_1_config_option_percent-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Slic3r::ConfigOptionPercent Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Specialized floating point class to represent some percentage value of another numeric configuration option.  
 <a href="class_slic3r_1_1_config_option_percent.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_config_8hpp_source.html">Config.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Slic3r::ConfigOptionPercent:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_slic3r_1_1_config_option_percent.png" usemap="#Slic3r::ConfigOptionPercent_map" alt=""/>
  <map id="Slic3r::ConfigOptionPercent_map" name="Slic3r::ConfigOptionPercent_map">
<area href="class_slic3r_1_1_config_option_float.html" alt="Slic3r::ConfigOptionFloat" shape="rect" coords="0,112,222,136"/>
<area href="class_slic3r_1_1_config_option_single.html" alt="Slic3r::ConfigOptionSingle&lt; double &gt;" shape="rect" coords="0,56,222,80"/>
<area href="class_slic3r_1_1_config_option.html" title="Public interface for configuration options. " alt="Slic3r::ConfigOption" shape="rect" coords="0,0,222,24"/>
<area href="class_slic3r_1_1_config_option_float_or_percent.html" alt="Slic3r::ConfigOptionFloatOrPercent" shape="rect" coords="0,224,222,248"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af7c9cafa19ef92f0c4e81dfc54bec60c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_percent.html#af7c9cafa19ef92f0c4e81dfc54bec60c">ConfigOptionPercent</a> ()</td></tr>
<tr class="separator:af7c9cafa19ef92f0c4e81dfc54bec60c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a324156fa0925b6818475794c0631efb5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_percent.html#a324156fa0925b6818475794c0631efb5">ConfigOptionPercent</a> (double _value)</td></tr>
<tr class="separator:a324156fa0925b6818475794c0631efb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2d0719e2e52ff40204a52469ecfc3d9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_slic3r_1_1_config_option_percent.html">ConfigOptionPercent</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_percent.html#ac2d0719e2e52ff40204a52469ecfc3d9">clone</a> () const</td></tr>
<tr class="separator:ac2d0719e2e52ff40204a52469ecfc3d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a132c858a83832db6a5980632db37b799"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_percent.html#a132c858a83832db6a5980632db37b799">get_abs_value</a> (double ratio_over) const</td></tr>
<tr class="separator:a132c858a83832db6a5980632db37b799"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d5e3eff87aa780bfc940a615a185a90"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_percent.html#a7d5e3eff87aa780bfc940a615a185a90">serialize</a> () const</td></tr>
<tr class="separator:a7d5e3eff87aa780bfc940a615a185a90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade6ef97d34074ab433b64fd5870b86fd"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_percent.html#ade6ef97d34074ab433b64fd5870b86fd">deserialize</a> (std::string str, bool append=false)</td></tr>
<tr class="separator:ade6ef97d34074ab433b64fd5870b86fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_slic3r_1_1_config_option_float"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_slic3r_1_1_config_option_float')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_slic3r_1_1_config_option_float.html">Slic3r::ConfigOptionFloat</a></td></tr>
<tr class="memitem:a0e20209ef1e9f810869a8f473b3cefb1 inherit pub_methods_class_slic3r_1_1_config_option_float"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_float.html#a0e20209ef1e9f810869a8f473b3cefb1">ConfigOptionFloat</a> ()</td></tr>
<tr class="separator:a0e20209ef1e9f810869a8f473b3cefb1 inherit pub_methods_class_slic3r_1_1_config_option_float"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab97de381131fbca53266cbbb77bdd338 inherit pub_methods_class_slic3r_1_1_config_option_float"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_float.html#ab97de381131fbca53266cbbb77bdd338">ConfigOptionFloat</a> (double _value)</td></tr>
<tr class="separator:ab97de381131fbca53266cbbb77bdd338 inherit pub_methods_class_slic3r_1_1_config_option_float"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60ce8956bc5efc8c0608f9b7c5bdc741 inherit pub_methods_class_slic3r_1_1_config_option_float"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_float.html#a60ce8956bc5efc8c0608f9b7c5bdc741">getFloat</a> () const</td></tr>
<tr class="separator:a60ce8956bc5efc8c0608f9b7c5bdc741 inherit pub_methods_class_slic3r_1_1_config_option_float"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_slic3r_1_1_config_option_single"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_slic3r_1_1_config_option_single')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_slic3r_1_1_config_option_single.html">Slic3r::ConfigOptionSingle&lt; double &gt;</a></td></tr>
<tr class="memitem:a0695c42c9db732034645500f913568c1 inherit pub_methods_class_slic3r_1_1_config_option_single"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_single.html#a0695c42c9db732034645500f913568c1">ConfigOptionSingle</a> (double _value)</td></tr>
<tr class="separator:a0695c42c9db732034645500f913568c1 inherit pub_methods_class_slic3r_1_1_config_option_single"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69377b73a601a27817b11d924615a106 inherit pub_methods_class_slic3r_1_1_config_option_single"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_single.html#a69377b73a601a27817b11d924615a106">operator double</a> () const</td></tr>
<tr class="separator:a69377b73a601a27817b11d924615a106 inherit pub_methods_class_slic3r_1_1_config_option_single"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01c6047317fc347e69da03e62cb5770d inherit pub_methods_class_slic3r_1_1_config_option_single"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_single.html#a01c6047317fc347e69da03e62cb5770d">set</a> (const <a class="el" href="class_slic3r_1_1_config_option.html">ConfigOption</a> &amp;option)</td></tr>
<tr class="separator:a01c6047317fc347e69da03e62cb5770d inherit pub_methods_class_slic3r_1_1_config_option_single"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_slic3r_1_1_config_option"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_slic3r_1_1_config_option')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_slic3r_1_1_config_option.html">Slic3r::ConfigOption</a></td></tr>
<tr class="memitem:a115b29c0449d421d63c1b5d905431f6e inherit pub_methods_class_slic3r_1_1_config_option"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option.html#a115b29c0449d421d63c1b5d905431f6e">~ConfigOption</a> ()</td></tr>
<tr class="separator:a115b29c0449d421d63c1b5d905431f6e inherit pub_methods_class_slic3r_1_1_config_option"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48d75494e5da015b08891a6712bc3bf4 inherit pub_methods_class_slic3r_1_1_config_option"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option.html#a48d75494e5da015b08891a6712bc3bf4">getInt</a> () const</td></tr>
<tr class="separator:a48d75494e5da015b08891a6712bc3bf4 inherit pub_methods_class_slic3r_1_1_config_option"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78800592be78a66830a85da7f382d13c inherit pub_methods_class_slic3r_1_1_config_option"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option.html#a78800592be78a66830a85da7f382d13c">getBool</a> () const</td></tr>
<tr class="separator:a78800592be78a66830a85da7f382d13c inherit pub_methods_class_slic3r_1_1_config_option"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4053d8e5c10b52c368232e2767f9792e inherit pub_methods_class_slic3r_1_1_config_option"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option.html#a4053d8e5c10b52c368232e2767f9792e">setInt</a> (int val)</td></tr>
<tr class="separator:a4053d8e5c10b52c368232e2767f9792e inherit pub_methods_class_slic3r_1_1_config_option"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8555c22bc73e825ef51d62672d0ff88c inherit pub_methods_class_slic3r_1_1_config_option"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option.html#a8555c22bc73e825ef51d62672d0ff88c">getString</a> () const</td></tr>
<tr class="separator:a8555c22bc73e825ef51d62672d0ff88c inherit pub_methods_class_slic3r_1_1_config_option"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_attribs_class_slic3r_1_1_config_option_single"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_class_slic3r_1_1_config_option_single')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="class_slic3r_1_1_config_option_single.html">Slic3r::ConfigOptionSingle&lt; double &gt;</a></td></tr>
<tr class="memitem:abaf8fe497afac1ad5e72a6f83751ee0a inherit pub_attribs_class_slic3r_1_1_config_option_single"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_single.html#abaf8fe497afac1ad5e72a6f83751ee0a">value</a></td></tr>
<tr class="separator:abaf8fe497afac1ad5e72a6f83751ee0a inherit pub_attribs_class_slic3r_1_1_config_option_single"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Specialized floating point class to represent some percentage value of another numeric configuration option. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="af7c9cafa19ef92f0c4e81dfc54bec60c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7c9cafa19ef92f0c4e81dfc54bec60c">&#9670;&nbsp;</a></span>ConfigOptionPercent() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Slic3r::ConfigOptionPercent::ConfigOptionPercent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a324156fa0925b6818475794c0631efb5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a324156fa0925b6818475794c0631efb5">&#9670;&nbsp;</a></span>ConfigOptionPercent() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Slic3r::ConfigOptionPercent::ConfigOptionPercent </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>_value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ac2d0719e2e52ff40204a52469ecfc3d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac2d0719e2e52ff40204a52469ecfc3d9">&#9670;&nbsp;</a></span>clone()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_slic3r_1_1_config_option_percent.html">ConfigOptionPercent</a>* Slic3r::ConfigOptionPercent::clone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reimplemented from <a class="el" href="class_slic3r_1_1_config_option_float.html#aacdf174931f339e65d78747fcee062d7">Slic3r::ConfigOptionFloat</a>.</p>

<p>Reimplemented in <a class="el" href="class_slic3r_1_1_config_option_float_or_percent.html#a94610e7aa21be44a3451c1d97c003f7b">Slic3r::ConfigOptionFloatOrPercent</a>.</p>

</div>
</div>
<a id="ade6ef97d34074ab433b64fd5870b86fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade6ef97d34074ab433b64fd5870b86fd">&#9670;&nbsp;</a></span>deserialize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Slic3r::ConfigOptionPercent::deserialize </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>append</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reimplemented from <a class="el" href="class_slic3r_1_1_config_option_float.html#afa89a6f54890b1c9f9ce291ea8758bfe">Slic3r::ConfigOptionFloat</a>.</p>

<p>Reimplemented in <a class="el" href="class_slic3r_1_1_config_option_float_or_percent.html#ac0cc6fee6bc51a7e23eed6f525eba1a8">Slic3r::ConfigOptionFloatOrPercent</a>.</p>

</div>
</div>
<a id="a132c858a83832db6a5980632db37b799"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a132c858a83832db6a5980632db37b799">&#9670;&nbsp;</a></span>get_abs_value()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double Slic3r::ConfigOptionPercent::get_abs_value </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>ratio_over</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Calculate the value of this option as it relates to some other numerical value. </p>

</div>
</div>
<a id="a7d5e3eff87aa780bfc940a615a185a90"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d5e3eff87aa780bfc940a615a185a90">&#9670;&nbsp;</a></span>serialize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string Slic3r::ConfigOptionPercent::serialize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reimplemented from <a class="el" href="class_slic3r_1_1_config_option_float.html#a29f60266acbfceed26bd0a7c5a386824">Slic3r::ConfigOptionFloat</a>.</p>

<p>Reimplemented in <a class="el" href="class_slic3r_1_1_config_option_float_or_percent.html#a180b96bde02bfa4f6e53f8fd90ea5664">Slic3r::ConfigOptionFloatOrPercent</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/libslic3r/<a class="el" href="_config_8hpp_source.html">Config.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
